/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.given.designpatterns.creational.abstractfactorypattern.factory.Impl;

import za.ac.cput.given.designpatterns.creational.abstractfactorypattern.Animal;
import za.ac.cput.given.designpatterns.creational.abstractfactorypattern.Impl.Snake;
import za.ac.cput.given.designpatterns.creational.abstractfactorypattern.Impl.Tyrannosaurus;

/**
 *
 * @author staff
 */
public class ReptileFactory extends SpeciesFactory {

    @Override
    public Animal getAnimal(String type) {
        if ("snake".equals(type)) {
            return new Snake();
        } else {
            return new Tyrannosaurus();
        }
    }
}
